import re


class Solution:

    def isMatch(self, s: str, p: str) -> bool:
        ans_tmp = re.findall(p, s)

        for ans in ans_tmp:
            if ans == s:
                return True
        else:
            return False
